package club.banyuan.dao;

import club.banyuan.bean.Blog;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface BlogDao {
    List<Blog> getAllBlogs();
    Blog getBlogByBlogId(Integer id);
    List<Blog> getBlogsByUser(String username);
}
